package com.qf.vo;

import com.qf.util.CopyFieldUtil;

/**
 * 用户实体的表示层对象
 * @version v1.0.0
 * @Description:
 * @author: 姜红凯
 * @date: 2022.04.01
 * @since 1.0
 */
public class UserVO {
    private Long id;
    private String username;
    private String nickname;
    private String gender;
    private String telephone;
    private String email;
    private String iconLink;

    public UserVO(){

    }
    public UserVO(Object user){
        CopyFieldUtil.copy(user,this);
    }
    @Override
    public String toString() {
        return "UserVO{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", nickname='" + nickname + '\'' +
                ", gender='" + gender + '\'' +
                ", telephone='" + telephone + '\'' +
                ", email='" + email + '\'' +
                ", iconLink='" + iconLink + '\'' +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getIconLink() {
        return iconLink;
    }

    public void setIconLink(String iconLink) {
        this.iconLink = iconLink;
    }
}
